package com.sabm.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.codehaus.jackson.annotate.JsonIgnore;

public class Contact  implements java.io.Serializable {


     private Integer idContact;
     private Account account;
     private String firstName;
     private String lastName;
     private boolean gender;
     private Date dob;
     private Set<Address> addresses = new HashSet<Address>(0);
     private Set<Email> emails = new HashSet<Email>(0);
     private Set<Phone> phones = new HashSet<Phone>(0);

    public Contact() {
    }

	
    public Contact(Account account, String firstName, String lastName, boolean gender, Date dob) {
        this.account = account;
        this.firstName = firstName;
        this.lastName = lastName;
        this.gender = gender;
        this.dob = dob;
    }
    public Contact(Account account, String firstName, String lastName, boolean gender, Date dob, Set<Address> addresses, Set<Email> emails, Set<Phone> phones) {
       this.account = account;
       this.firstName = firstName;
       this.lastName = lastName;
       this.gender = gender;
       this.dob = dob;
       this.addresses = addresses;
       this.emails = emails;
       this.phones = phones;
    }
   
    public Integer getIdContact() {
        return this.idContact;
    }
    
    public void setIdContact(Integer idContact) {
        this.idContact = idContact;
    }
    @JsonIgnore
    public Account getAccount() {
        return this.account;
    }
    
    public void setAccount(Account account) {
        this.account = account;
    }
    public String getFirstName() {
        return this.firstName;
    }
    
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    public String getLastName() {
        return this.lastName;
    }
    
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    public boolean isGender() {
        return this.gender;
    }
    
    public void setGender(boolean gender) {
        this.gender = gender;
    }
    public Date getDob() {
        return this.dob;
    }
    
    public void setDob(Date dob) {
        this.dob = dob;
    }
    
    public Set<Address> getAddresses() {
        return this.addresses;
    }
    
    public void setAddresses(Set<Address> addresses) {
        this.addresses = addresses;
    }
    
    public Set<Email> getEmails() {
        return this.emails;
    }
    
    public void setEmails(Set<Email> emails) {
        this.emails = emails;
    }
    
    public Set<Phone> getPhones() {
        return this.phones;
    }
    
    public void setPhones(Set<Phone> phones) {
        this.phones = phones;
    }




}


